// AccessDataBaseDlg.h : header file
//
#include "Resource.h"
#include "CDataView.h"
#ifndef VAGUELY_SEARCH_INCLUDED
	#include "VaguelySearch.h"
#endif
#pragma once

// CAccessDataBaseDlg dialog
class CVaguelySearchDlg : public CDialog
{
	// Construction
public:
	CVaguelySearchDlg(CWnd* pParent = NULL);	// standard constructor
	~CVaguelySearchDlg();
	void SetSearch(CString str1,CString str2);
	// Dialog Data
	enum { IDD = IDD_VAGUELYSEARCH };
	VaguelySearch* m_Search;
	CDataView* m_CDataView;
private:
	//virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

	//ConnectDatabaseApp m_ConnectionApp;
	// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
//	virtual BOOL OnInitDialog();
//	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
//	afx_msg void OnPaint();
//	afx_msg HCURSOR OnQueryDragIcon();
//	DECLARE_MESSAGE_MAP()
//public:
//	afx_msg void OnBnClickedOk();
//	afx_msg void OnBnClickedVaguelySearch();
public:
	DECLARE_MESSAGE_MAP()
	afx_msg void StartVaguelyNameSearch();
	void ShowResult(std::map<NeededData*,std::vector<NeededData*>>* mpMatchResult);
	void FilterResultByDate(std::map<NeededData*,std::vector<NeededData*>>* mpMatchResult);
	void FilterResultByPronunciation(std::map<NeededData*,std::vector<NeededData*>>* mpMatchResult);
	void FilterResultByDateAndIdentifyNumber(std::map<NeededData*,std::vector<NeededData*>>* mpMatchResult);
private:
	bool m_NeedFilterDate;
	int m_FilterSize;
};
